package com.example.logining.mapper;

import com.example.logining.domain.pojo.SysUser;
import com.example.logining.domain.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.util.List;

/**
 * @title: UserMapper
 * @author: wywang
 * @date: 2024/11/09
 * @description:
 **/


@Mapper
public interface UserMapper {

    SysUser findByUsername(String username);

   /* @Insert("INSERT INTO sys_user (username, password,email,phone,status,create_time,update_time) " +
            "VALUES (#{username}, #{password}, #{email}, #{phone}, #{status}, #{createTime}, #{updateTime})")
    @Options(useGeneratedKeys = true, keyProperty = "id")*/
    int insertUser(SysUser user);

    List<String> selectUserPermissions(Long userId);
}
